package com.org.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户技能表
 * </p>
 *
 * @author cjx
 * @since 2024-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("skill")
@ApiModel(value="Skill对象", description="用户技能表")
public class Skill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "创建人id")
    private Integer userId;

    @ApiModelProperty(value = "头像")
    private String pic;

    @ApiModelProperty(value = "意向服务类型01")
    private String lable01;

    @ApiModelProperty(value = "意向服务类型01")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String lable02;

    @ApiModelProperty(value = "意向服务类型01")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String lable03;

    @ApiModelProperty(value = "意向服务类型01")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String lable04;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "状态 草稿 | 空闲 | 忙碌")
    private String state;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "社区id")
    private Integer communityId;

    @ApiModelProperty(value = "意向服务开始时间段")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime starttime;

    @ApiModelProperty(value = "意向服务结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endtime;

    @ApiModelProperty(value = "志愿者所在经纬度")
    private String location;

    @ApiModelProperty(value = "志愿者所在地址")
    private String address;


    @TableField(exist = false)
    private double distance; //距离

    @TableField(exist = false)
    private double score; //匹配的得分


}
